<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
	<head>
		<!--加载header文件-->
		<?php
		include_once 'public/views/header.php';
		include_once 'public/home/html/laydate.php';
		include_once 'public/home/html/alert.php';
		?>
		<?php
		include_once 'public/home/html/faltSelect.php';
		include_once 'public/home/html/ueditor.php';
		?>
		<link rel="stylesheet" href="public/css/edit.css" />
		<link rel="stylesheet" href="public/css/ImgUpload.css" />

		<script src="cust/js/tableEdit3.js"></script>
		<script src="public/js/cus_modal.js"></script>
		<script src="public/js/autoTextarea.js"></script>
		<script src="public/home/js/function.js"></script>
		<script src="cust/js/goodsUpload.js"></script>
		<script src="cust/js/fileUpload.js"></script>
		<style>
			input{
				width:150px;
			}
		</style>
	</head>
	<body>
	<input type="file" id="document-file" style="display: none;" multiple="multiple">
<!-- 各种资料demo -->
<div class="data-box-demo hide">
    	<div class="data-box data-box-banner">
    		<i class="icon-remove-sign  del-icon" onclick="delDocument(this)"></i>
    		<a href="" download=""><img src="" alt="" class="document-img"></a>
    		<input type="hidden" class="path">
    		<input type="hidden" class="icon">

    		<!-- 前后 -->
    		<div class="banner-prev" onclick="bannerPrev(this)"><i class="fa fa-angle-left" aria-hidden="true"></i></div>
    		<div class="banner-next" onclick="bannerNext(this)"><i class="fa fa-angle-right" aria-hidden="true"></i></div>
    	</div>
    </div>
		<div class="container">
			<div class="row">
				<input type="hidden" id="modal_title" value="<?=$title ?>" />
				<input type="hidden" id="modal_height" value="450" />
				<h3 class="title-page"><?= $title ?></h3>
				<form id="editForm">
					<input type="hidden" id="id" name="id" value="<?=estr($detail, 'id') ?>" />
					<input type="hidden" id="folder_id" name="folder_id" value="<?php echo $folder_id; ?>" />
					<table class='edit_table'>
						<tr>
							<th class="required">巡考人签名</th>
							<td >
								<?php if(estr($detail, 'id')): ?>
									<?=estr($detail, 'username') ?>（<?=estr($detail, 'usercode') ?>）
								<?php else: ?>
									<?php echo getSess()['username'] ?>（<?=getSess()['usercode'] ?>）
								<?php endif ?>
							</td>
							<th class="required">督导身份</th>
							<td>
								<select name="AttendType" id="AttendType" class="outline-none">
					               <option value="-1">督导身份</option>
					           		<?php foreach ($AttendType as $k => $v): ?>		     
					                <option value="<?=$v['key']?>"  <?php if(estr($detail, 'AttendType')==$v['key']) echo 'selected="selected"' ?>><?php echo $v['value'] ?></option>					                 
					               <?php endforeach ?>
					             </select>
							</td>
						</tr>
						<tr>
							<th class="required">巡考地点</th>
							<td>
								<input class="edit-page" type="text" name="address" id="address" value="<?=estr($detail, 'address') ?>" dataType="*" />
								<div class="print-page"><?=estr($detail, 'address') ?></div>
							</td>
							<th class="required">日期</th>
							<td>
								<input class="outline-none" type="text" name="sub_time" id="sub_time" value="<?php echo isset($detail['sub_time'])?date('Y-m-d',estr($detail, 'sub_time')):'' ?>" dataType="*" />
							</td>
						</tr>
						<tr>
							<th class="required" colspan="4" style="height:30px;">巡考情况</td>
						</tr>
						<tr>
							<td colspan="4">
								<script id="editor" type="text/plain" style="height:300px; width:100%;"></script>
								<textarea name="content" id="content" cols="30" rows="10" style="width:100%;"><?php echo $detail['content']; ?></textarea>
							</td>
							<!-- <td colspan="4" style="height:200px;">
								<textarea class="outline-none" name="content" id="content" style="height:100%; width:100%; resize: none;"><?=estr($detail, 'content') ?></textarea>
							</td> -->
						</tr>
						<tr>
							<th class="required" colspan="4" style="height:30px;">情况处理及建议</td>
						</tr>
						<tr>
							<td colspan="4">
								<script id="editor1" type="text/plain" style="height:300px; width:100%;"></script>
								<textarea name="advice" id="advice" cols="30" rows="10" style="width:100%;"><?php echo $detail['advice']; ?></textarea>
							</td>
							<!-- <td colspan="4" style="height:200px;">
								<textarea class="outline-none" name="advice" id="advice" style="height:100%; width:100%; resize: none;"><?=estr($detail, 'advice') ?></textarea>
							</td> -->
						</tr>
						<tr class="title-tr">
                        <th colspan="4"><i class="icon-dashboard"></i>图片上传</th>
                    </tr>
					<tr class="tab-item1">
							<td colspan="4">
								<table class='edit_table'>
								<!-- 	<tr>
									<td colspan="4" style="text-align: left!important;">
										<button class="pageItemButton" onclick="showImage(this)"><i class="icon-eye-open"></i>图片预览</button>
									</td>
								</tr> -->
									<tr>
										<td colspan="4" class="td_<?php echo UploadType::SupervisionOtherImg[XPHEnum::Value] ?>" >
											<div class="data-box" class="td_<?php echo UploadType::SupervisionOtherImg[XPHEnum::Value] ?>">
											    <img class="add-img" data-type="<?php echo UploadType::SupervisionOtherImg[XPHEnum::Value] ?>" src="<?php echo base_url() ?>public/home/images/add-structure.png" alt="" onclick="uploadDocument(this)">
											</div>
											<?php if(isset($SupervisionOtherImg)): ?>
											<?php foreach ($SupervisionOtherImg as $k => $v): ?>
											<div class="data-box data-box-banner">
					
												<i class="icon-remove-sign  del-icon" onclick="delDocument(this)"></i>
												<a href="<?php echo $v ?>" download=""><img src="<?php echo $v ?>" alt="" class="document-img"></a>
												<input type="hidden" name="SupervisionOtherImg" class="path" value="<?php echo $v ?>">
												<!-- <input type="hidden" name="icon[<?php echo UploadType::SupervisionOtherImg[XPHEnum::Value] ?>][]" class="icon" value="<?php echo $v['icon'] ?>"> -->

												<!-- 前后 -->
												<div class="banner-prev" onclick="bannerPrev(this)"><i class="fa fa-angle-left" aria-hidden="true"></i></div>
												<div class="banner-next" onclick="bannerNext(this)"><i class="fa fa-angle-right" aria-hidden="true"></i></div>
											</div>	
											<?php endforeach ?>
											<?php endif; ?>

											<!-- 文件上传进度条 -->
											<div class="document-p">
												<div class="clearfix">
													<div class="col-xs-12 p-text" style="font-size: 12px; font-weight:bold; margin-bottom: 5px;">已上传（0%）</div>
												</div>

												<div class="progress progress-mini progress-striped active">
													<div style="width:0%" class="progress-bar progress-bar-success"></div>
												</div>
											</div>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					
					</table>
				</form>
				<div class="viewContent">
					<!--这是显示具体车辆信息情况的。-->
				</div>
			</div>
		</div>
	</body>
</html>
